<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<a href="{:url('Admin/add')}">添加</a>
<a href="{:url('Login/editpwd')}">修改密码</a>
<!--<form action="{:url('Admin/addExcel')}" method="post" enctype="multipart/form-data">-->
  <!--<input type="file" name="file"/>-->
  <!--<input type="submit" value="上传"/>-->
<!--</form>-->
<table border="1">
  <tr>
    <td>编号</td>
    <td>登录账号</td>
    <td>性别</td>
    <td>真实姓名</td>
    <td>别名</td>
    <!--<td>密码</td>-->
    <td>创建时间</td>
    <td>最后登录时间</td>
    <td>最后登录ip</td>
    <td>登录次数</td>
    <td>头像</td>
    <td>角色</td>
    <td>邮箱</td>
    <td>操作</td>
  </tr>
{foreach $lists as $vo}
  <tr>
    <td>{$vo.id}</td>
    <td>{$vo.logname}</td>
    <td>{$sex[$vo.sex]}</td>
    <td>{$vo.uname}</td>
    <td>{$vo.aname}</td>
    <!--<td>{$vo.pwd}</td>-->
    <td><?php echo date('Y-d-m H:i:s',$vo['ctime'])?></td>
    <td><?php echo date('Y-d-m H:i:s',$vo['lastlog'])?></td>
    <td>{$vo.lastip}</td>
    <td>{$vo.logcnt}</td>
    <td><img src="{$vo.head}" width="100px"></td>
    <td>{$vo.role_name}</td>
    <td>{$vo.email}</td>
    <td>
      <a href="/admin/admin/set?id={$vo.id}">设置</a>
      <a href="/admin/admin/edit?id={$vo.id}">编辑</a>
      <a href="/admin/admin/del?id={$vo.id}">删除</a>
    </td>
  </tr>
{/foreach}
  <tr>
    <td colspan="20" style=" text-align: center">
      <div class="container">
        <div class="row">
          <div class="col-md-4"></div>
          <div class="col-md-4">{$lists->render()}</div></div>
        <div class="col-md-4"></div>
      </div>
    </td>
  </tr>
</table>

</body>
</html>